package com.sky.service;

import com.sky.dto.*;
import com.sky.entity.OrderDetail;
import com.sky.result.PageResult;
import com.sky.vo.OrderPaymentVO;
import com.sky.vo.OrderStatisticsVO;
import com.sky.vo.OrderSubmitVO;
import com.sky.vo.OrderVO;

import java.util.List;

public interface OrderService {
    OrderSubmitVO submit(OrdersSubmitDTO ordersSubmitDTO);
    /**
     * 订单支付
     * @param ordersPaymentDTO
     * @return
     */
    OrderPaymentVO payment(OrdersPaymentDTO ordersPaymentDTO) throws Exception;
    /**
     * 支付成功，修改订单状态
     * @param outTradeNo
     */
    void paySuccess(String outTradeNo);

    /**
     * 取消某个订单
     * @param orderId
     */

    void cancel(Long orderId);

    PageResult page(Integer page, Integer pageSize, Integer status);

    List<OrderDetail> getOrderDetailByOrderId(Long id);

    void repetition(Long id);
    /**
     * 管理端接单
     */
    void confirm(Long id);

    void rejection(OrdersRejectionDTO ordersRejectionDTO);

    void cancel(OrdersCancelDTO ordersCancelDTO);

    OrderStatisticsVO statistics();

    PageResult page(OrdersPageQueryDTO ordersPageQueryDTO);

    void delivery(Long id);
   void complete(Long id);

    OrderVO getById(Long id);

    void reminder(Long id);
}
